
cmake_minimum_required(VERSION 3.13)

project(freertos)

add_library(freertos INTERFACE)

# Enable CMake support for ASM and C languages
enable_language(C ASM)

target_include_directories(freertos INTERFACE
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/inc
    ${CMAKE_CURRENT_SOURCE_DIR}/port
)

target_sources(freertos INTERFACE
    # ${CMAKE_CURRENT_SOURCE_DIR}/src/croutine.c
    # ${CMAKE_CURRENT_SOURCE_DIR}/src/event_groups.c
    ${CMAKE_CURRENT_SOURCE_DIR}/src/list.c
    # ${CMAKE_CURRENT_SOURCE_DIR}/src/queue.c
    # ${CMAKE_CURRENT_SOURCE_DIR}/src/stream_buffer.c
    ${CMAKE_CURRENT_SOURCE_DIR}/src/tasks.c
    # ${CMAKE_CURRENT_SOURCE_DIR}/src/timers.c
    ${CMAKE_CURRENT_SOURCE_DIR}/port/port.c
    # ${CMAKE_CURRENT_SOURCE_DIR}/port/heap_4.c
)
